package Demo.demo8;

public class Demo81 {
    public static void main(String[] args) {
        //将字符串转换为字符数组
        String str = "sdasdasdasd";
        char[] chars = str.toCharArray();
        System.out.println(chars[1]);
        for (int i = 0;i<chars.length;i++){
            System.out.print(chars[i] + " ");
        }
    }
}
